package top.bulgat.test.application.idl;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import top.bulgat.apidocs.annotation.RestApi;
import top.bulgat.commons.model.BaseResp;
import top.bulgat.test.application.idl.model.user.LoginReq;
import top.bulgat.test.application.idl.model.user.LoginResp;
import top.bulgat.test.application.idl.model.user.RegisterReq;

@RestApi
@RequestMapping("/api/user")
public interface UserApi {
    @PostMapping("/login")
    BaseResp<LoginResp> login(@RequestBody LoginReq req);

    @PostMapping("/register")
    BaseResp<Boolean> register(@RequestBody RegisterReq req);
}
